package edu.sctu.liangyuxiang.day20150526;

import java.util.HashMap;

/**
 * Created by user20 on 2015/5/26.
 */
public class SetData {

    public HashMap<Integer , SetStudent> setMap(int size){
        HashMap<Integer , SetStudent> map = new HashMap<Integer , SetStudent>();
        for (int i = 1; i < size; i++) {
            map.put(i,new SetStudent());
        }
        return map;
    }

    public HashMap<Integer , SetStudent> setStudentInformation(int size){
        HashMap<Integer , SetStudent> map = setMap(size);
        for (int i = 1; i < map.size() ; i++) {
            map.get(i).age = 16+i;
            map.get(i).name = "张三"+i;
            map.get(i).number = 140610+i;
        }
        return map;
    }
}
